package com.sunfeng.chap4.test2_1;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

/**
 * @description:
 * @author: 孙 峰
 * @time: 2020/11/9 19:31
 */
public class Client {
    public static void main(String[] args) throws IOException, InterruptedException {
        Socket socket = new Socket("localhost", 8088);
        OutputStream outputStream = socket.getOutputStream();
        outputStream.write("1111111111".getBytes());
        outputStream.write("111111111111111".getBytes());
        outputStream.write("1111111111111111111111111".getBytes());
        Thread.sleep(100000000);
        socket.close();
    }
}
